<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{resumenAgencias.page1}" id="page1">
            <ui:html binding="#{resumenAgencias.html1}" id="html1">
                <ui:head binding="#{resumenAgencias.head1}" id="head1">
                    <ui:link binding="#{resumenAgencias.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{resumenAgencias.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{resumenAgencias.form1}" id="form1">
                        <h:panelGrid binding="#{resumenAgencias.gridPanelContenedorGlobal}" id="gridPanelContenedorGlobal" style="height: 96px; left: 48px; top: 120px; position: absolute; width: 96px">
                            <h:panelGrid binding="#{resumenAgencias.gridPanelParaTituloYAlert}" columns="2" id="gridPanelParaTituloYAlert" style="height: 24px" width="648">
                                <ui:staticText binding="#{resumenAgencias.titulo1}" id="titulo1"
                                    style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px" text="Resumen por agencias"/>
                                <ui:alert binding="#{resumenAgencias.alert1}" id="alert1" style="width: 502px"/>
                            </h:panelGrid>
                            <ui:label binding="#{resumenAgencias.solicitudesRadicadasLAbel}" id="solicitudesRadicadasLAbel" text="Solicitudes radicadas por rango de fecha"/>
                            <h:panelGrid binding="#{resumenAgencias.gridPanelParaRangoDeFechas}" columns="2" id="gridPanelParaRangoDeFechas"
                                style="height: 48px" width="647">
                                <ui:panelGroup binding="#{resumenAgencias.groupPanelFechaInicial}" id="groupPanelFechaInicial">
                                    <ui:calendar binding="#{resumenAgencias.fechaInicialCalendar}" columns="10" id="fechaInicialCalendar" label="Fecha incial"/>
                                    <ui:message binding="#{resumenAgencias.message1}" for="fechaInicialCalendar" id="message1" showDetail="false" showSummary="true"/>
                                </ui:panelGroup>
                                <ui:panelGroup binding="#{resumenAgencias.groupPanelFechaFinal}" id="groupPanelFechaFinal">
                                    <ui:calendar binding="#{resumenAgencias.fechaFinalCalendar}" columns="10" id="fechaFinalCalendar" label="Fecha final"/>
                                    <ui:message binding="#{resumenAgencias.message2}" for="fechaFinalCalendar" id="message2" showDetail="false" showSummary="true"/>
                                </ui:panelGroup>
                            </h:panelGrid>
                            <ui:button action="#{resumenAgencias.botonBuscar_action}" binding="#{resumenAgencias.botonBuscar}" id="botonBuscar"
                                imageURL="/resources/buscar.gif" text="Botón"/>
                            <ui:table augmentTitle="false" binding="#{resumenAgencias.table1}" clearSortButton="true" id="table1" lite="true"
                                paginateButton="true" paginationControls="true" style="width: 341px" title="Agencias" width="341">
                                <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                <ui:tableRowGroup binding="#{resumenAgencias.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                    sourceData="#{resumenAgencias.dataProviderResumenAgencia}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn8}" headerText="Agencia" id="tableColumn8" sort="NMBREAGNCIA">
                                        <ui:hyperlink action="#{resumenAgencias.hyperlink1_action}" binding="#{resumenAgencias.hyperlink1}" id="hyperlink1"
                                            style="font-size: 10px" text="#{currentRow.value['NMBREAGNCIA']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn2}" headerText="Solicitudes" id="tableColumn2" sort="SOLSTOTAL" width="50">
                                        <ui:staticText binding="#{resumenAgencias.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['SOLSTOTAL']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn3}" headerText="Radicadas" id="tableColumn3" sort="RADICADAS" width="50">
                                        <ui:staticText binding="#{resumenAgencias.staticText3}" id="staticText3" style="font-size: 10px" text="#{currentRow.value['RADICADAS']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn4}" headerText="En proceso" id="tableColumn4" sort="ENPROCESO" width="50">
                                        <ui:staticText binding="#{resumenAgencias.staticText4}" id="staticText4" style="font-size: 10px" text="#{currentRow.value['ENPROCESO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn5}" headerText="Aprobadas" id="tableColumn5" sort="APROBADAS" width="50">
                                        <ui:staticText binding="#{resumenAgencias.staticText5}" id="staticText5" style="font-size: 10px" text="#{currentRow.value['APROBADAS']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn6}" headerText="Rechazadas" id="tableColumn6" sort="RECHAZADAS" width="50">
                                        <ui:staticText binding="#{resumenAgencias.staticText6}" id="staticText6" style="font-size: 10px" text="#{currentRow.value['RECHAZADAS']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{resumenAgencias.tableColumn7}" headerText="Monto total" id="tableColumn7" sort="MONTOTOTAL">
                                        <ui:staticText binding="#{resumenAgencias.staticText7}" id="staticText7" style="font-size: 10px" text="#{resumenAgencias.montoConversionADecimal}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </h:panelGrid>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
